<template>
  <div>
    <div>儿子组件: {{money}}</div>
    <button @click='handleSend'>退钱</button>
    <GrandSon />
  </div>
</template>
<script>
import GrandSon from './GrandSon.vue'
import { inject } from 'vue'
export default {
  name: 'Son',
  components: { GrandSon },
  setup () {
    const money = inject('money')
    return { money }
  }
}
</script>
